package cn.itcast.demo;

import cn.itcast.utils.MailUtils;

import javax.mail.MessagingException;

public class emailSend {

    public static void main(String[] args) throws MessagingException {
        //参数一：给谁发
        String email="luqingcast@126.com";
        //参数二: 发什么内容
        String msg="欢迎加入sass大家庭~~~";
        MailUtils.sendMail(email,msg,"欢迎您");
    }
}
